package com.atguigu.edu.publisher.service.impl;

import com.atguigu.edu.publisher.beans.VideoPlaySecBean;
import com.atguigu.edu.publisher.beans.VideoViewerNumsBean;
import com.atguigu.edu.publisher.mapper.VideoPlaySecMapper;
import com.atguigu.edu.publisher.service.VideoPlaySecService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Classname VideoPlaySecServiceImpl
 * @Date 2022/11/20 15:22
 * @Created by arun
 */

@Service
public class VideoPlaySecServiceImpl implements VideoPlaySecService {
    @Autowired
    private VideoPlaySecMapper videoPlaySecMapper;


    @Override
    public List<VideoPlaySecBean> selectVideoPlaySec(Integer date) {
        return videoPlaySecMapper.selectVideoPlaySec(date);
    }

    @Override
    public List<VideoViewerNumsBean> selectVideoViewerNums(Integer date) {
        return videoPlaySecMapper.selectVideoViewerNums(date);
    }
}
